﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CostAccounting.Export.aspx.cs"
    Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <style type="text/css">
        .thheader{
        font-weight:bold;vertical-align:middle;text-align:center;
        font-size:11px;
        border:1px solid #ccc !important;
        line-height: 7px !important;;
        }
        .totalamount{
        font-weight:bold;
        }
    </style>
    <style type="text/css">
        html {
                font-size: 100%;
                height: 100%;
                margin-bottom: 1px; /* Always show a scrollbar to avoid jumping when the scrollbar appears  */
                }

        body {
                font-family: Arial, Helvetica, sans-serif;
                color: #555;
                background: #fff;
                font-size: 12px;
                }
        a        { color: #57a000; text-decoration: none; }
        a:hover     { color: #000; }
        a:active     { color: #777; }
        a:focus     { outline: 1px; }
        table{border-collapse:collaspe;border:1px solid #fff;border-bottom:1px solid #fff;border-right:1px solid #fff;border-left:1px solid #fff;}
        td {border-collapse: collapse;border:1px solid #fff;border-bottom:1px solid #fff;border-right:1px solid #fff;border-left:1px solid #fff;}
        .normal {border-collapse: collapse;border:1px solid #fff;}
        table.adminlistprint {
            background-color: #fff;
            border-collapse: collapse;
            border-left: 1px solid #CCCCCC;
            border-top: 1px solid #CCCCCC;
            border-right: 1px solid #CCCCCC;
            border-bottom: 1px solid #CCCCCC;
            color: #666666;
            font-size: 12px;
            width: 100%;
        }
        table.adminlistprint td, table.adminlistprint th {
            padding: 3px !important;
            background-color: #fff;
        }
        table.adminlistprint td, table.adminlistprint th  {
            border-bottom: 1px solid #CCCCCC;
            border-right: 1px solid #CCCCCC;
            border-left: 1px solid #CCCCCC;
        }
        table.adminlistprint thead, table.adminlistprint th {
            padding: 3px !important;
            background-color: #ECECEC;
        }
        @media screen, projection{
	span.pseudolink
	{
		color:Blue;
		text-decoration:underline;
		font-size:10pt;
		font-family:Tahoma;
		cursor:hand
	}
	header, footer
	{
		display:none
	}

        @media print{
	        span.pseudolink
	        {
		        display:none
	        }
	        header, footer
	        {
		        display:none
	        }
        }
        .hideifnoscript {
	        display: none
        }
        .wrapword{
        white-space: -moz-pre-wrap !important;  /* Mozilla, since 1999 */
        white-space: -pre-wrap;      /* Opera 4-6 */
        white-space: -o-pre-wrap;    /* Opera 7 */
        white-space: pre-wrap;       /* css-3 */
        word-wrap: break-word;       /* Internet Explorer 5.5+ */
        word-break: break-all;
        white-space: normal;


        }
    </style>
    <style type="text/css">
        .bottom td
        {
            font-weight: bold;
            text-align: right;
        }
    </style>
</head>
<body>
    <div id="body-wrapper">
        <div id="header">
        </div>
        <div id="main-content1">
            <h2>
                COSTING SUM:
                <%=Province %>
            </h2>
            <div class="clear">
            </div>
            <div class="content-box">
                <form id="frmEdit" runat="server">
                <div class="content-box-header">
                    <div class="clear">
                    </div>
                </div>
                <asp:Repeater ID="rptData" runat="server">
                    <ItemTemplate>
                        <tr onmouseover="this.style.background='#dbf0c9'" onmouseout="this.style.background='#ffffff'"
                            borrowbookid='<%#Eval("ID") %>'>
                            <td>
                                <%# DataBinder.Eval(Container.DataItem, "Index")%>
                            </td>
                            <td editable="false" code="FileNumber" completesource="vFileNumber">
                                <%# DataBinder.Eval(Container.DataItem, "FileNumber")%>
                            </td>
                            <td editable="false" code="Agent">
                                <%# DataBinder.Eval(Container.DataItem, "Agent")%>
                            </td>
                            <td editable="false" code="Customer">
                                <%# DataBinder.Eval(Container.DataItem, "Customer")%>
                            </td>
                            <%-- <td editable="false" code="POL">
                                <%# DataBinder.Eval(Container.DataItem, "POL")%>
                            </td>--%>
                            <td editable="false" code="POD">
                                <%# DataBinder.Eval(Container.DataItem, "POD")%>
                            </td>
                            <td editable="false" code="ETD">
                                <%# DataBinder.Eval(Container.DataItem, "ETD")%>
                            </td>
                            <td editable="false" code="MBLNo">
                                <%# DataBinder.Eval(Container.DataItem, "MBLNo")%>
                            </td>
                            <td editable="false" code="HBLNo">
                                <%# DataBinder.Eval(Container.DataItem, "HBLNo")%>
                            </td>
                            <td editable="false" code="InvoicesNoBuy">
                                <%# DataBinder.Eval(Container.DataItem, "InvoicesNoBuy")%>
                            </td>
                            <td editable="false" code="InvoicesDateBuy">
                                <%# DataBinder.Eval(Container.DataItem, "InvoicesDateBuy")%>
                            </td>
                            <td editable="false" code="Total_BuyPriceInvoice">
                                <%# DataBinder.Eval(Container.DataItem, "Total_BuyPriceInvoice")%>
                            </td>
                            <td editable="false" code="InvoicesNo">
                                <%# DataBinder.Eval(Container.DataItem, "InvoicesNo")%>
                            </td>
                            <td editable="false" code="InvoicesDate">
                                <%# DataBinder.Eval(Container.DataItem, "InvoicesDate")%>
                            </td>
                            <td editable="false" code="Total_SellPriceInvoice">
                                <%# DataBinder.Eval(Container.DataItem, "Total_SellPriceInvoice")%>
                            </td>
                            <td editable="false" code="COM">
                                <%# DataBinder.Eval(Container.DataItem, "COM")%>
                            </td>
                            <td editable="false" code="TB">
                                <%# DataBinder.Eval(Container.DataItem, "TB")%>
                            </td>
                            <td editable="false" code="Note">
                                <%# DataBinder.Eval(Container.DataItem, "Note")%>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <HeaderTemplate>
                        <table cellspacing="0" cellpadding="0" width="100%" border="0" class="adminlistprint"
                            editcellcontent="true">
                            <thead>
                                <tr style="background: #ECECEC;">
                                    <th align="center" class="thheader" width="30px" rowspan="2">
                                        Index
                                    </th>
                                    <th align="center" class="thheader" rowspan="2">
                                        Số file
                                    </th>
                                    <th align="center" class="thheader" rowspan="2">
                                        Nhà CC
                                    </th>
                                    <th align="center" class="thheader" rowspan="2">
                                        Khách hàng
                                    </th>
                                    <%--<th align="center" class="thheader">
                                        POL
                                    </th>--%>
                                    <th align="center" class="thheader" rowspan="2">
                                        POD
                                    </th>
                                    <th align="center" class="thheader" rowspan="2">
                                        ATD
                                    </th>
                                    <th align="center" class="thheader" rowspan="2">
                                        M/BL NO
                                    </th>
                                    <th align="center" class="thheader" rowspan="2">
                                        H/BL NO
                                    </th>
                                    <th align="center" class="thheader" colspan="3">
                                        HĐ mua vào
                                    </th>
                                    <th align="center" class="thheader" colspan="3">
                                        HĐ bán ra
                                    </th>
                                    <th align="center" class="thheader" rowspan="2">
                                        COM
                                    </th>
                                    <th align="center" class="thheader" rowspan="2">
                                        TB
                                    </th>
                                    <th align="center" class="thheader" rowspan="2">
                                        Ghi chú
                                    </th>
                                </tr>
                                <tr>
                                    <th align="center" class="thheader">
                                        Số hóa đơn
                                    </th>
                                    <th align="center" class="thheader">
                                        Ngày hóa đơn
                                    </th>
                                    <th align="center" class="thheader">
                                        Số tiền
                                    </th>
                                    <th align="center" class="thheader">
                                        Số hóa đơn
                                    </th>
                                    <th align="center" class="thheader">
                                        Ngày hóa đơn
                                    </th>
                                    <th align="center" class="thheader">
                                        Số tiền
                                    </th>
                                </tr>
                            </thead>
                    </HeaderTemplate>
                    <FooterTemplate>
                        <tr class="bottom">
                            <td colspan="8">
                                Tổng cộng
                            </td>
                            <td colspan="3">
                                <%=All_BuyPriceInvoice.ToString("0,0.##") %>
                            </td>
                            <td colspan="3">
                                <%=All_SellPriceInvoice.ToString("0,0.##") %>
                            </td>
                            <td>
                                <%=All_Com.ToString("0,0.##") %>
                            </td>
                            <td>
                                <%=All_Tb.ToString("0,0.##") %>
                            </td>
                            <td>
                            </td>
                        </tr>
                        </TABLE>
                    </FooterTemplate>
                </asp:Repeater>
                <div class="clear">
                </div>
                <div id="footer">
                </div>
                </form>
            </div>
        </div>
    </div>
</body>
</html>
